<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="../../js/jquery-1.11.1.min.js"></script>
<link type="text/css" href="../../css/intro.css" rel="stylesheet" >
<script type="text/javascript">
var userId;
$(document).ready(function() {
	var str = location.href;
	var num = str.indexOf("?");
	userId = str.substr(num+8,str.length);
	$.ajax({
		type : 'post',
		dataType : 'text',
		async: false,
		url : '../../resume/getResInfoByUserId.action',
		data : {
			"resumeDTO.userDTO.userId":userId
		},
		success : function(msg) {
			if(msg.length>4){
				var resumeObj = JSON.parse(msg);
				$("#resumeDTO\\.resumeId").val(resumeObj[0].resumeId);
				$("#resumeDTO\\.learningExperience").val(resumeObj[0].learningExperience);
				$("#resumeDTO\\.projectExperience").val(resumeObj[0].projectExperience);
				$("#resumeDTO\\.honor").val(resumeObj[0].honor);
				$("#resumeDTO\\.hobby").val(resumeObj[0].hobby);
				$("#resumeDTO\\.jobPosition").val(resumeObj[0].jobPosition);
				document.getElementById("idPhoto").src = resumeObj[0].headPhoto;
				$("#resumeDTO\\.resumeRemarks").val(resumeObj[0].resumeRemarks);
			}
		}
	});
	$.ajax({
		type : 'post',
		dataType : 'text',
		async: false,
		url : '../../user/getSimplyUserInfoById.action',
		data : {
			"userDTO.userId":userId
		},
		success : function(msg) {
			var userObj = JSON.parse(msg);
			$("#userDTO\\.userId").val(userObj[0].userId);
			if(userObj[0].userSex == 1)
				$("#userDTO\\.userSex").val("男");
			else
				$("#userDTO\\.userSex").val("女");
			$("#userDTO\\.userRemarks").val(userObj[0].userRemarks);
			$("#userDTO\\.userNickName").val(userObj[0].userNickName);
			$("#userDTO\\.userNation").val(userObj[0].userNation);
			$("#userDTO\\.homePlace").val(userObj[0].homePlace);
			$("#userDTO\\.userBirthday").val(userObj[0].userBirthday);
			$("#userDTO\\.userPolitics").val(userObj[0].userPolitics);
			$("#userDTO\\.userSchool").val(userObj[0].userSchool);
			$("#userDTO\\.userEducaBack").val(userObj[0].userEducaBack);
			$("#userDTO\\.userMajor").val(userObj[0].userMajor);
			$("#userDTO\\.userEnglish").val(userObj[0].userEnglish);
			$("#userDTO\\.userPhone").val(userObj[0].userPhone);
			$("#userDTO\\.userEmail").val(userObj[0].userEmail);
			$("#userDTO\\.userQq").val(userObj[0].userQq);
			$("#userDTO\\.userAddress").val(userObj[0].userAddress);
		}
	});
	var inputs = document.getElementsByTagName("input");    
	var textaa = document.getElementsByTagName("textArea");    
	for(var i=0;i<inputs.length;i++){    
		inputs[i].setAttribute("readOnly",true);    
	}
	for(var i=0;i<textaa.length;i++){    
		textaa[i].setAttribute("readOnly",true);    
	}
});
</script>
<body>
<div id="introduce">
<table border="1" >
<tr>
<td rowspan="8">个人<br/><br/>资料</td>
</tr>
<tr>
<td>姓名</td>
<td><input id="userDTO.userNickName" name="userDTO.userNickName" type="text"/></td>
<td>性别</td>
<td><input  name="userDTO.userSex" type="text" id="userDTO.userSex"/></td>
<td rowspan="7"><img id="idPhoto"  style="width:150px;"/></td>
</tr>
<tr>
<td>民族</td>
<td><input  id="userDTO.userNation" name="userDTO.userNation" type="text"/>
<td>籍贯</td>
<td><input  id="userDTO.homePlace" name="userDTO.homePlace" type="text"/>
</tr>
<tr>
<td>出生年月</td>
<td><input type="text" id="userDTO.userBirthday" name="userDTO.userBirthday"></td>
<td>政治面貌</td>
<td><input name="userDTO.userPolitics" id="userDTO.userPolitics" type="text"></td>
</tr>
<tr>
<td>毕业院校</td>
<td><input type="text" id="userDTO.userSchool" name="userDTO.userSchool"></td>
<td>学历</td>
<td><input  type="text" name="userDTO.userEducaBack" id="userDTO.userEducaBack"/></td>
</tr>
<tr>
<td>专业</td>
<td><input type="text" id="userDTO.userMajor" name="userDTO.userMajor"></td>
<td>英语水平</td>
<td><input type="text" id="userDTO.userEnglish" name="userDTO.userEnglish"/></td>
</tr>
<tr>
<td>联系电话</td>
<td><input type="text" id="userDTO.userPhone" name="userDTO.userPhone"></td>
<td>邮件地址</td>
<td><input type="text" id="userDTO.userEmail" name="userDTO.userEmail"/></td>
</tr>
<tr>
<td>QQ</td>
<td><input type="text" id="userDTO.userQq" name="userDTO.userQq"></td>
<td>住址/邮编</td>
<td><input type="text" id="userDTO.userAddress" name="userDTO.userAddress"/></td>
</tr>
<tr>
<td >学习经历</td>
<td colspan="6"><textArea id="resumeDTO.learningExperience" name="resumeDTO.learningExperience"></textArea></td>
</tr>
<tr>
<td>项目经历</td>
<td colspan="6"><textArea id="resumeDTO.projectExperience" name="resumeDTO.projectExperience"></textArea></td>
</tr>
<tr>
<td>校园荣誉</td>
<td colspan="6"><textArea id="resumeDTO.honor" name="resumeDTO.honor"></textArea></td>
</tr>
<tr>
<td>兴趣爱好</td>
<td colspan="6"><textArea id="resumeDTO.hobby" name="resumeDTO.hobby"></textArea></td>
</tr>
</table>
</div>
</body>
</html>